package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkVipchannelPricelogMapper;
import com.ktgj.service.domain.ContractLinkVipchannelPricelog;
import com.ktgj.service.service.IContractLinkVipchannelPricelogService;

/**
 * 合同VIP通道服务价格记录
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkVipchannelPricelogServiceImpl implements IContractLinkVipchannelPricelogService 
{
    @Autowired
    private ContractLinkVipchannelPricelogMapper contractLinkVipchannelPricelogMapper;

    /**
     * 查询合同VIP通道服务价格记录

     * 
     * @param operationlogId 合同VIP通道服务价格记录
ID
     * @return 合同VIP通道服务价格记录

     */
    @Override
    public ContractLinkVipchannelPricelog selectContractLinkVipchannelPricelogById(Long operationlogId)
    {
        return contractLinkVipchannelPricelogMapper.selectContractLinkVipchannelPricelogById(operationlogId);
    }

    /**
     * 查询合同VIP通道服务价格记录
列表
     * 
     * @param contractLinkVipchannelPricelog 合同VIP通道服务价格记录

     * @return 合同VIP通道服务价格记录

     */
    @Override
    public List<ContractLinkVipchannelPricelog> selectContractLinkVipchannelPricelogList(ContractLinkVipchannelPricelog contractLinkVipchannelPricelog)
    {
        return contractLinkVipchannelPricelogMapper.selectContractLinkVipchannelPricelogList(contractLinkVipchannelPricelog);
    }

    /**
     * 新增合同VIP通道服务价格记录

     * 
     * @param contractLinkVipchannelPricelog 合同VIP通道服务价格记录

     * @return 结果
     */
    @Override
    public int insertContractLinkVipchannelPricelog(ContractLinkVipchannelPricelog contractLinkVipchannelPricelog)
    {
        contractLinkVipchannelPricelog.setCreateTime(DateUtils.getNowDate());
        return contractLinkVipchannelPricelogMapper.insertContractLinkVipchannelPricelog(contractLinkVipchannelPricelog);
    }

    /**
     * 修改合同VIP通道服务价格记录

     * 
     * @param contractLinkVipchannelPricelog 合同VIP通道服务价格记录

     * @return 结果
     */
    @Override
    public int updateContractLinkVipchannelPricelog(ContractLinkVipchannelPricelog contractLinkVipchannelPricelog)
    {
        contractLinkVipchannelPricelog.setUpdateTime(DateUtils.getNowDate());
        return contractLinkVipchannelPricelogMapper.updateContractLinkVipchannelPricelog(contractLinkVipchannelPricelog);
    }

    /**
     * 批量删除合同VIP通道服务价格记录

     * 
     * @param operationlogIds 需要删除的合同VIP通道服务价格记录
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkVipchannelPricelogByIds(Long[] operationlogIds)
    {
        return contractLinkVipchannelPricelogMapper.deleteContractLinkVipchannelPricelogByIds(operationlogIds);
    }

    /**
     * 删除合同VIP通道服务价格记录
信息
     * 
     * @param operationlogId 合同VIP通道服务价格记录
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkVipchannelPricelogById(Long operationlogId)
    {
        return contractLinkVipchannelPricelogMapper.deleteContractLinkVipchannelPricelogById(operationlogId);
    }
}
